#include "s1.h"

#include "State/agent.h"

S1::S1()
{

}

S1::~S1()
{

}

void S1::t2(Agent *sub)
{
    sub->setSelfState(sub->pS1);
    cout<<"S1::t2 "<<sub->local_str<<endl;
}

void S1::t3(Agent *sub)
{
    if(sub->local_g > 0){
        sub->setSelfState(sub->pS0);
    }
    cout<<"S1::t3 "<<sub->local_g<<endl;
}
